

import javax.swing.JFrame;

import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

public class QQLogin extends JFrame {
    public QQLogin() {
        this.setBounds(700, 300, 600, 454);
        this.setTitle("QQ登录界面");
        this.setLayout(null);
        this.setResizable(false);

        Icon icon1 = new ImageIcon("images/logo.jpg");
        JLabel img1 = new JLabel(icon1);
        img1.setBounds(0, 0, 600, 154);

        Icon icon2 = new ImageIcon("images/icon.jpg");
        JLabel img2 = new JLabel(icon2);
        img2.setBounds(80, 170, 110, 100);

        JTextField userTest = new JTextField();
        userTest.setBounds(200, 185, 250, 30);
        JPasswordField pawTest = new JPasswordField();
        pawTest.setBounds(200, 230, 250, 30);

        JLabel zczh = new JLabel("注册账号");
        zczh.setBounds(460, 100, 200, 200);
        JLabel zhmm = new JLabel("找回密码");
        zhmm.setBounds(460, 145, 200, 200);

        JComboBox<String> ComboBox = new JComboBox<String>();
        ComboBox.addItem("在线");
        ComboBox.addItem("离开");
        ComboBox.addItem("忙碌");
        ComboBox.addItem("隐身");
        ComboBox.setBounds(95, 280, 85, 25);

        JCheckBox jzmm = new JCheckBox("记住密码");
        jzmm.setBounds(220, 270, 100, 50);
        JCheckBox zddl = new JCheckBox("自动登录");
        zddl.setBounds(350, 270, 100, 50);

        JButton dzh = new JButton("多账号");
        dzh.setBounds(50, 340, 105, 30);
        JButton sz = new JButton("设置");
        sz.setBounds(180, 340, 105, 30);
        JButton dl = new JButton("登录");
        dl.setBounds(420, 340, 105, 30);

        this.add(img1);
        this.add(img2);
        this.add(userTest);
        this.add(pawTest);
        this.add(zczh);
        this.add(zhmm);
        this.add(ComboBox);
        this.add(jzmm);
        this.add(zddl);
        this.add(dzh);
        this.add(sz);
        this.add(dl);

    }

    public static void main(String[] args) {
        QQLogin login = new QQLogin();
        login.setVisible(true);
    }
}